import requests

url = "http://118.121.200.162:8086/api/v5/department"
type = ['all',"group","top","child"]
for i in type:
    res = requests.get(url,params=i)
    assert res.status_code == 200
    print(res.json())